package com.spzx.product.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@TableName(value = "brand")
@Schema(description = "品牌表格")
public class Brand extends BaseEntity {
    @NotEmpty(message="名称不能为空哦")
    @TableField(value ="name")
    private String name ;
    @NotEmpty(message="图标不能为空哦")
    @TableField(value ="logo")
    private String logo ;

}
